package com.poc.dto;

public enum ResultCode {

    SUCCESS(1, "sucess"),
    INTERNAL_SERVER_ERROR(500, "error");

    private final Integer code;
    private final String message;


    public Integer code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}